package com.qf.utils;

import com.qf.model.User;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.Random;

public class UserUtils {

    private static Random random =new Random();

    public static List<User> users(int num){
        List<User> list =new ArrayList<>();
        for (int i = 0; i < num; i++) {
            User user =new User();
            user.setBirthday(new Date());
            user.setSex(random.nextInt(2));
            user.setPwd("111"+ random.nextInt(10000));
            user.setUsername("user"+random.nextInt(1000000));
            list.add(user);
        }

        return list;
    }



}
